<?php
class Exts_Closures_BooleanClosure extends Exts_Closures_Closure {
	
	protected function _postInvoke($returnValue){
		if (is_bool($returnValue) || $returnValue instanceof Exts_Closures_BooleanClosure){
			return $returnValue;
		}
		
		throw new Exts_Exception("¡BooleanClosure debe devolver un booleano o un objeto Closure!");
	}
}